<!DOCTYPE html>
<html class="h-100">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <title>许愿墙</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js" crossorigin="anonymous" async></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" crossorigin="anonymous"></script>
    <script src="/scripts/snippet-javascript-console.min.js" crossorigin="anonymous"></script>
    <style>
        main > .container {
            padding: 60px 15px 0;
        }
    </style>
</head>
<body class="d-flex flex-column h-100">

<!--#include virtual="../header.html"-->

<main class="flex-shrink-0">
    <div class="container">
        <div class="row" data-masonry='{"percentPosition": true }'>
            <{foreach $data as $k=>$v}>
            <div class="col-sm-6 col-lg-4 mb-4">
                <div class="card">
                    <div class="card-body">
                        <h5 class="card-title"><{#$v['user']}></h5>
                        <p class="card-text"><{#$v['wishing']}></p>
                        <p class="card-text">
                            <small class="text-muted">第[<{#$k}>]条 <{#$v['time']}></small>
                        </p>
                    </div>
                </div>
            </div>
            <{/foreach}>
        </div>
    </div>
</main>

<!--#include virtual="../footer.html"-->

</body>
</html>